namespace WFTest.Entity
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class V_PUR_POORDER
    {
        public int? FENTRYID { get; set; }

        [StringLength(50)]
        public string F_VIVH_TEXT_PI { get; set; }

        [Key]
        [Column(Order = 0)]
        [StringLength(50)]
        public string FBILLNO { get; set; }

        [Key]
        [Column(Order = 1)]
        [StringLength(8)]
        public string FDOCUMENTSTATUS { get; set; }

        [Key]
        [Column(Order = 2)]
        [StringLength(6)]
        public string FCLOSESTATUS { get; set; }

        [StringLength(8)]
        public string FMRPCLOSESTATUS { get; set; }

        [StringLength(255)]
        public string FBILLTYPE { get; set; }

        [Key]
        [Column(Order = 3)]
        public DateTime FDATE { get; set; }

        [StringLength(255)]
        public string FPURCHASER { get; set; }

        [StringLength(255)]
        public string FPURORG { get; set; }

        [StringLength(255)]
        public string FPURDEP { get; set; }

        [StringLength(255)]
        public string FREQORG { get; set; }

        [StringLength(255)]
        public string FSUPP { get; set; }

        [StringLength(50)]
        public string FSHORTNAME { get; set; }

        [StringLength(80)]
        public string FNUMBER { get; set; }

        [StringLength(255)]
        public string FNAME { get; set; }

        [StringLength(510)]
        public string FSPECIFICATION { get; set; }

        public decimal? FQTY { get; set; }

        [StringLength(80)]
        public string FUNIT { get; set; }

        public decimal? FRECEIVEQTY { get; set; }

        public decimal? FSTOCKINQTY { get; set; }

        public decimal? FMRBQTY { get; set; }

        public decimal? FREMAINRECEIVEQTY { get; set; }

        public decimal? FREMAINSTOCKINQTY { get; set; }

        public decimal? FPRICE { get; set; }

        public decimal? FTAXPRICE { get; set; }

        public DateTime? FAPPROVEDATE { get; set; }

        [StringLength(255)]
        public string FNOTE { get; set; }
    }
}
